package Bean.Log;

import com.sun.istack.NotNull;
import net.bytebuddy.implementation.bind.annotation.Default;

import javax.persistence.*;
import java.sql.Timestamp;

@Entity
@Table(name = "historicalData", schema = "bookloansystem", catalog = "bookloansystem")
public class HistoricalData {

    Timestamp timestamp;
    int visterNum=0;
    int orderNum=0;//订单数量
    int NewUserNum=0;
    int NewBookNum=0;
    int commentNum=0;


    @Id
    @Column(name = "time")
    @NotNull
    public Timestamp getTimestamp() {
        return timestamp;
    }

    public void setTimestamp(Timestamp timestamp) {
        this.timestamp = timestamp;
    }
    @Basic
    @Column(name = "visternum")
    public int getVisterNum() {
        return visterNum;
    }

    public void setVisterNum(int visterNum) {
        this.visterNum = visterNum;
    }
    @Basic
    @Column(name = "ordernum")
    public int getOrderNum() {
        return orderNum;
    }

    public void setOrderNum(int orderNum) {
        this.orderNum = orderNum;
    }

    @Basic
    @Column(name = "newUserNum")
    public int getNewUserNum() {
        return NewUserNum;
    }

    public void setNewUserNum(int newUserNum) {
        NewUserNum = newUserNum;
    }
    @Basic
    @Column(name = "newBookNum")
    public int getNewBookNum() {
        return NewBookNum;
    }

    public void setNewBookNum(int newBookNum) {
        NewBookNum = newBookNum;
    }
    @Basic
    @Column(name = "commentNum",columnDefinition = "0")
    public int getCommentNum() {
        return commentNum;
    }

    public void setCommentNum(int commentNum) {
        this.commentNum = commentNum;
    }
}
